package com.witte.dao;

import com.witte.entity.Customer;
import com.witte.entity.NewCustomer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NewCustomerMapper {
    int deleteByPrimaryKey(Integer no);

    int insert(NewCustomer record);

    int insertSelective(NewCustomer record);

    NewCustomer selectByPrimaryKey(Integer no);

    int updateByPrimaryKeySelective(NewCustomer record);

    int updateByPrimaryKey(NewCustomer record);

    List<NewCustomer> selectAll();

    List<NewCustomer> selectTime();

    int getRecodeCount();

    List<NewCustomer> selectPage(@Param("beginPage") Integer beginPage, @Param("pageSize") Integer pageSize);

    List<NewCustomer> selectByName(@Param("name")String name, @Param("beginPage") Integer beginPage,@Param("pageSize") Integer pageSize);

    int getNameCount(@Param("name")String name);
}